package com.xinzhi.controller;

import com.xinzhi.pojo.dto.Chengji;
import com.xinzhi.pojo.dto.Shenhenianfen;
import com.xinzhi.service.ShenhenianfenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ShenhenianfenController {
    @Autowired
    private ShenhenianfenService shenhenianfenService;

    @GetMapping("/shenhenianfen")
    public List<Shenhenianfen> getShenhenianfen(@RequestParam("yearnumber") String yearnumber) {
        return shenhenianfenService.getShenhenanfen(yearnumber);
    }
}

